import pycurl
import requests
from ../config import get_header,get_log

def test():
    url = 'http://www.itjuzi.com/company/1'
    req = requests.get(url,timeout=10,headers=get_header())
    req.encoding = 'utf8'
    with open('test.html','wb')as f:
        f.write(req.content)
    with open('test.html','rt')as f:
        html = f.read()

    print(html)
